package com.wxp.demo07.client.app.client.entity;

import androidx.annotation.NonNull;

/**
 * 用户实体类
 */
public class UserEntity {

    /**
     * 序号
     */
    public int id;
    /**
     * 姓名
     */
    public String name;
    /**
     * 年龄
     */
    public int age;
    /**
     * 身高
     */
    public long height;
    /**
     * 体重
     */
    public float weight;
    /**
     * 婚否
     */
    public boolean married;

    public UserEntity() {

    }

    public UserEntity(String name, int age, long height, float weight, boolean married) {
        this.name = name;
        this.age = age;
        this.height = height;
        this.weight = weight;
        this.married = married;
    }

    @NonNull
    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", weight=" + weight +
                ", married=" + married +
                '}';
    }

}
